<template>
	<view style="padding-top: 100px;">
		<view class="text-area">
			<text>输入值：</text>
			<input  type="text" v-model="title" style="color:red"/>
		</view>
		<view class="text-area">
			<text>回传值：</text>
			<input type="text" :value="callBackValue" style="color: blue;"/>
		</view>
		<ComA :intent="title"></comA>
		<ComB @callBackFun="callBack"></comB>
	</view>
</template>

<script>
	import ComA from '../../../../components/ComA.vue';
	import ComB from '../../../../components/ComB.vue';
	export default {
		components:{
			ComA,
			ComB
		},
		data() {
			return {
				title:'',
				callBackValue:'',
			}
		},
		methods: {
			callBack(msg){
				console.warn("---index---callBack-->" + msg);
				this.callBackValue = msg;
			},
			handleAData(value){
				this.aToBValue = value
			}
		}
	}
</script>

<style>

</style>
